package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.OperationV2Rule;
import com.novax.ex.activity.infrastructure.entity.OperationV2SubRule;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Author ChenXi
 * @Date 2024/04/25/14:31
 */
 

public interface OperationV2SubRuleMapper extends BaseMapper {

    /**
     * @param operationSubId
     * @Description: 查询多语言配置
     * @Author: ChenXi
     * @Date: 2024/4/25 16:46
     * @return: java.util.List<com.novax.ex.activity.infrastructure.entity.OperationV2Rule>
     **/
    List<OperationV2SubRule> selectListFromOperationId(@Param("operationSubId") Long operationSubId);

    /**
     * @param operationSubId
     * @param language
     * @Description: 查询是否已存在多语言配置
     * @Author: ChenXi
     * @Date: 2024/4/25 16:49
     * @return: java.lang.Long
     **/
    Long queryOperationIdAndLanguage(@Param("operationSubId") Long operationSubId, @Param("language") String language);

    /**
     * @param operationSubId
     * @param language
     * @Description: 查询对应多语言配置
     * @Author: ChenXi
     * @Date: 2024/5/7 18:14
     * @return: com.novax.ex.activity.infrastructure.entity.OperationV2SubRule
     **/
    OperationV2SubRule queryRule(@Param("operationSubId") Long operationSubId, @Param("language") String language);

}